package com.he1618.boot3.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ShortController {


    @RequestMapping("/short/{code}")
    public String msg(@PathVariable("code") String message) {
        System.out.println(message);
        return "redirect:http://www.baidu.com";
    }
}
